# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>

pkgname=perl-io-pipely
pkgver=0.006
pkgrel=1
pkgdesc="Portably create pipe() or pipe-like handles, one way or another."
depends=('perl>=5.10.0')
license=('GPL' 'PerlArtistic')
url="https://search.cpan.org/dist/IO-Pipely/"
options=('!emptydirs')
arch=(any)
source=(https://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/IO-Pipely-${pkgver}.tar.gz)
md5sums=('64d52842eaba12175a968ab36d846bd5')

build() {
  cd "$srcdir"/IO-Pipely-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IO-Pipely-$pkgver
  make DESTDIR="$pkgdir" install
  # Remove .packlist and perllocal.pod files.
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name 'perllocal.pod' -delete
}
